    <!DOCTYPE HTML>
<html>
<head>
    {include file="common_header"}
    <title>添加管理员</title>
</head>
<body>
<article class="page-container">
    <form class="form form-horizontal"  method="post" enctype="multipart/form-data"  action="{:url('edit')}">
        <input type="hidden" name="id" value="{$data['id']}">
        <div class="row cl">
            <label class="form-label col-xs-3 col-xs-offset-1"><span class="c-red">*</span>管理员：</label>
            <div class="formControls col-xs-6">
                <input type="text" class="input-text" value="{$data['name']}" placeholder="" id="adminName" name="name" >
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-xs-offset-1"><span class="c-red"></span>管理员头像：</label>
            <div class="formControls col-xs-4">
                <input type="file" class="input-text"  name="coverFile" placeholder="" id="coverFile">
            </div>
            <!--<img src="__UPLOADS__{$data['cover']}" alt="">-->
            <div class="formControls col-xs-3">
                {if condition="$data['cover']"}
                    已上传，<a href="javascript:void(0);"  onclick="previewPictures('__UPLOADS__'+'{$data.cover}')" style="color: red;text-decoration: none;">预览</a>
                {/if}
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3 col-xs-offset-1"><span class="c-red"></span>初始密码：</label>
            <div class="formControls col-xs-6 col-sm-9">
                <input type="password" class="input-text" autocomplete="off" value="" placeholder="密码" id="password" name="pass">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3 col-xs-offset-1"><span class="c-red"></span>确认密码：</label>
            <div class="formControls col-xs-6 col-sm-9">
                <input type="password" class="input-text" autocomplete="off"  placeholder="确认新密码">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label  col-xs-3 col-sm-3 col-xs-offset-1">角色：</label>
            <div class="formControls col-xs-6 col-sm-9"> <span class="select-box" style="width:150px;">
				<select class="select" name="user_group_id" datatype="*" nullmsg="请选择角色">
                <option value="" selected disabled>请选择角色</option>
                {volist name="list" id="v"}

                	<option value="{$v['id']}"  {if condition="$v['id'] eq $data['user_group_id']"}selected{/if}>{$v['title']}</option>
                {/volist}
			</select>
			</span> </div>
        </div>
        <!--<div class="row cl">-->
            <!--<label class="form-label  col-xs-3 col-sm-3 col-xs-offset-1">备注：</label>-->
            <!--<div class="formControls col-xs-6 col-sm-9">-->
                <!--<textarea name="content" cols="" rows="" class="textarea"  placeholder="说点什么...100个字符以内" dragonfly="true" onKeyUp="$.Huitextarealength(this,100)"></textarea>-->
                <!--<p class="textarea-numberbar"><em class="textarea-length">0</em>/100</p>-->
            <!--</div>-->
        <!--</div>-->
        <div class="row cl pd-20" >
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</article>
<!--_footer 作为公共模版分离出去-->
{include file="common_footer"}
<!--/_footer 作为公共模版分离出去-->
<!--<script>-->
<!--$(function () {-->
<!--var ue = UE.getEditor('content');-->
<!--});-->
<!--</script>-->
<script>
    /**
     * 预览图片
     * @param url
     */
    function previewPictures(url) {
        layer.photos({
            photos: {
                "title": imgTitle, //相册标题
                "id": 1, //相册id
                "start": 0, //初始显示的图片序号，默认0
                "data": [   //相册包含的图片，数组格式
                    {
                        "alt": imgTitle,
                        "pid": 1, //图片id
                        "src": url, //原图地址
                        "thumb": "" //缩略图地址
                    }
                ]
            }
        });
    }
</script>
</body>
</html>